import objectUtils from "@/utils/object/index.js";

export default objectUtils.freeze({
	obj: {
		find: (arr, val, key = 'value', valKey = 'label') => {
			for (let i = 0; i < arr.length; i++) {
				if(arr[i][key] === val){
					return arr[i][valKey];
				}
			}
			return "";
		}
	}
});